﻿function IsEmail(email){
 var regext = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
 return (regext.test(email));
}

function isCarNo(str){
	var re=/^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}$/;
	if (re.test(str))
	{
		return true;
	}
	return false;
}

function isPhone(str)
{
		if(/^(0[1-9]\d{1,2})\d{7,8}(-\d{1,8})?/.test(str))
		{
		return true;
		}
		return false;
}


function IsMobile(inputData){
	  //电信手机号码正则        
            var dianxin = /^1[3578][01379]\d{8}/;
            // /^1[35]\d{9}/
            //联通手机号正则        
            var liantong = /^1[34578][01256]\d{8}/;
            
            var yidong = /^1[34578][012356789]\d{8}/;
            
           // var yidong = /"^(134[012345678]\d{7}|1[34578][012356789]\d{8})/;
       
            return (dianxin.test(inputData) || liantong.test(inputData) || yidong.test(inputData) || isPhone(inputData))
              
}
 

 
		 